package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.Employee;
import com.xxxx.server.pojo.Salary;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2020-10-15
 */
public interface SalaryMapper extends BaseMapper<Salary> {

    /*查询工资账套接口*/
    List<Salary> selectAllSob();

    /*添加工资账套接口*/
    Integer addSob(Salary salary);

    /*修改工资账套接口*/
    Integer updateSob(Salary salary);

    /*删除工资账套接口*/
    Integer deleteSob(Integer userId);

    /*修改关联的工资账套*/
    Integer updateSobCfg(Integer eid, Integer sid);

    /*实现分页，返回用户信息*/
    List<Employee> pageHandler(Integer startNum, Integer size);

    /*返回所有信息*/
    Long getTotal();
}
